<?php

namespace Database\Factories;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Model>
 */
class MemberFactory extends Factory
{

    protected $model = \App\Models\Member::class;
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            //
            'name' => $this->faker->name(),
            'real_name'=>$this->faker->name(),
            'email' => $this->faker->unique()->safeEmail(),
            'registration_date' => now(),
            'address'=>$this->faker->address(),
            'phone'=>$this->faker->phoneNumber(),
            'password' => Hash::make(123456), // password
            'login_at' =>Carbon::now()
        ];
    }
}
